#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QLabel>

enum SettingLayoutType
{
    OneType = 0,
    FourType,
    FiveType,
    SixType,
    NineType,
};

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private:
    void initWidget();//widget
    void initMenu();//菜单
    void contextMenuEvent(QContextMenuEvent* event);//重新菜单事件
    void switchLayout(SettingLayoutType type);//布局切换

private:
    QList<QLabel*> m_layoutList;  //存储显示的label
    QMenu* m_swtichMenu;

};

#endif // WIDGET_H
